{assign var=formId value='list'}
<div id="content">
    <div class="highlight">
        
        {if isset($tabadmindefault)}{$tabadmindefault}{/if}
		{if isset($searchtype)}{$searchtype}{/if}
        
        {if isset($infoText)}
            <div class="{$infoClass}">
                <h4>Result:</h4>
                <p>{$infoText}</p>
            </div>
        {/if}
        {include file="admin/toolbar.temp.html" title=toolbar}
        <form id="{$formId}" name="{$formId}" action="{$base_url}" method="post">
            <div class="tableContent">
                <table width="100%" border="0" cellspacing="0" cellpaddPostsing="0">
                    <thead>
                        <tr>
                        <th><input class="box3" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('{$formId}');" /></th>
                        <th>{l s='no'}</th>
                        <th>{l s='parent'}</th>
                        <th><a href="{$base_url}/{$op}/act/list/searchTerms/{$searchTerms}/searchStatus/{$searchStatus}/orderBy/slug/orderDir/{if $orderBy eq 'slug' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{l s='click_here_to_sort_by'} {l s='slug'}">{l s='slug'}{if $orderBy eq 'slug'}&nbsp;<img src="templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>
                        <th><a href="{$base_url}/{$op}/act/list/searchTerms/{$searchTerms}/searchStatus/{$searchStatus}/orderBy/{$lang}_name/orderDir/{if $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{l s='click_here_to_sort_by'} {l s='name'}">{l s='name'}{if $orderBy eq 'vn_name'}&nbsp;<img src="templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>
                        <th><a href="{$base_url}/{$op}/act/list/searchTerms/{$searchTerms}/searchStatus/{$searchStatus}/orderBy/status/orderDir/{if $orderBy eq 'status' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{l s='click_here_to_sort_by'} {l s='status'}">{l s='status'}{if $orderBy eq 'status'}&nbsp;<img src="templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>
                        <th><a href="{$base_url}/{$op}/act/list/searchTerms/{$searchTerms}/searchStatus/{$searchStatus}/orderBy/status/orderDir/{if $orderBy eq 'position' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{l s='click_here_to_sort_by'} {l s='position'}">{l s='position'}{if $orderBy eq 'position'}&nbsp;<img src="templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>
                        <th>{l s='actions'}</th>
                        </tr>
                    </thead>
                    <tbody>
                        {if $listObjects}
                        {assign var=i value=$listObjects.pages.start}
                        {foreach from=$listObjects.data item=object}
                        {assign var=i value=$i+1}
                        <tr{if $i%2 == 0} class="bgType"{/if}>
                        <td><input class="box3" type="checkbox" name="oIds[]" id="oIds" value="{$object->getField('id')}" /></td>
                        <td>{$i|number_format}</td>
                        <td>{$category->getParentName($lang, $object->getField('cid'))}</td>
                        <td>{$object->getField('slug')}</td>
                        <td><a href="{$base_url}/{$op}/act/list/pid/{$object->getField('id')}">{$object->getFieldLangAdmin($lang, 'name')}</a></td>
                        <td>{if $object->isDeleted()}<span style="color: #FF0000">{$object->getStatusText()}</span>{else}{$object->getStatusText()}{/if}</td>
                        <td>
                            <input type="text" name="position" class="position" oId="{$object->getField('id')}" value="{$object->getField('position')}" />
                        </td>
                        <td>
                            {include file="admin/action.temp.html" title=action}
                        </td>
                        </tr>
                        {/foreach}
                        {/if}
                    </tbody>
                </table>
                <div class="paging">
                    <p class="btnType">
                        <input type="hidden" id="op"  name="op" value="{$op}" />
                        <input type="hidden" id="act" name="act" value="{$act}" />
                        <input type="hidden" id="pid" name="pid" value="{$pid}" />
                        <input type="hidden" id="oId" name="oId" value=""/>
                        <input type="hidden" id="searchTerms" name="searchTerms" value="{$searchTerms}"/>
                        <input type="hidden" id="searchStatus" name="searchStatus" value="{$searchStatus}"/>
                        <input type="hidden" id="orderBy" name="orderBy" value="{$orderBy}"/>
                        <input type="hidden" id="orderDir" name="orderDir" value="{$orderDir}"/>
                        <input type="hidden" id="page" name="page" value="{$page}"/>
                        <input type="hidden" id="position" name="position" value=""/>
                        <input type="hidden" id="plus" name="plus" id="plus" value=""/>
                    </p>
                    {include file="admin/paging.temp.html" title=paging}
                </div>
            </div>
        </form>
    </div>
</div>